def has_repeat_number(x):
    for i in range(len(x)-1):
        if x[i]==x[i+1]:
            return True
        return False
x=[1,2,2,4,5]
print(x)
print(has_repeat_number(x))
y=[1,2,1,4,5]
print(has_repeat_number(y))
